<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>background属性</title>
    <style>
        div {
            width: 1000px;
            height: 1000px;

            /* background: pink url(./背景图测试图片.jpg) no-repeat center bottom/cover; */
            background: pink url(./背景图测试图片.jpg) no-repeat center bottom/contain;

        }
    </style>
</head>
<body>
    <div>div 标签</div>
</body>
</html>